package org.example.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.example.system.entity.TeacherEntity;

/**
 * 教师服务接口
 */
public interface TeacherService {
    /**
     * 教师登录
     *
     * @param teacher
     * @return
     */
    String login(TeacherEntity teacher);

    /**
     * 添加教师
     *
     * @param teacher
     * @return
     */
    int add(TeacherEntity teacher);

    /**
     * 按条件分页查询
     *
     * @param teacher
     * @return
     */
    IPage<TeacherEntity> selectPage(TeacherEntity teacher);

    /**
     * 修改
     *
     * @param teacher
     * @return
     */
    int update(TeacherEntity teacher);

    /**
     * 删除
     *
     * @param ids
     * @return
     */
    int deleteBatch(Long[] ids);

    /**
     * 根据id获取教师信息
     *
     * @param id
     * @return
     */
    TeacherEntity getOne(Long id);

    /**
     * 根据工号查询教师信息
     *
     * @param number
     * @return
     */
    TeacherEntity getOneByNumber(String number);
}
